package com.xbdx.lyboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * 欢迎页测试Springsceurity的用户角色权限的放行
 */

@Controller
public class WelcomeController {

    @GetMapping("/welcome")
    public String welcome() {
        return "welcome";
    }

    @GetMapping("/level1/{path}")
    public String level1(@PathVariable("path") String path) {
        return "level1/" + path;
    }


    @GetMapping("/level2/{path}")
    public String level2(@PathVariable("path") String path) {
        return "level2/" + path;
    }

    @GetMapping("/level3/{path}")
    public String level3(@PathVariable("path") String path) {
        return "level3/" + path;
    }
}
